@8wave/ai-elements 0.115.0-beta.34 → 0.115.0-beta.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{Agent-Cu04vBnd.js → Agent-D3cVY0pk.js} +121 -110
- package/dist/_chunks/Agent-D3cVY0pk.js.map +1 -0
- package/dist/_chunks/PkHeldImage-BtaPh0Jr.js +42 -0
- package/dist/_chunks/PkHeldImage-BtaPh0Jr.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown-Qk9Tk_N7.js → PkStreamingMarkdown-DyvZ5xKK.js} +782 -741
- package/dist/_chunks/PkStreamingMarkdown-DyvZ5xKK.js.map +1 -0
- package/dist/_chunks/{PkToolRequestGeolocation-BoKYkQ-Z.js → PkToolRequestGeolocation-DjRmmYMk.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-BoKYkQ-Z.js.map → PkToolRequestGeolocation-DjRmmYMk.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-CDzpfBg6.js → PkToolRequestOAuthConnection-CJ8dg2RY.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-CDzpfBg6.js.map → PkToolRequestOAuthConnection-CJ8dg2RY.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-DB8JjN-b.js → PkToolShowArtifact-Bk-xmGxl.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-DB8JjN-b.js.map → PkToolShowArtifact-Bk-xmGxl.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-DHviNxDk.js → PkToolShowContactForm-B0o6CY0Q.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-DHviNxDk.js.map → PkToolShowContactForm-B0o6CY0Q.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-B-R9fh3R.js → PkToolShowForm-C4-KAKPL.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-B-R9fh3R.js.map → PkToolShowForm-C4-KAKPL.js.map} +1 -1
- package/dist/_chunks/PkToolShowImageGallery-Jdo7p2mZ.js +88 -0
- package/dist/_chunks/PkToolShowImageGallery-Jdo7p2mZ.js.map +1 -0
- package/dist/_chunks/PkToolShowProductList-Cfk865KB.js +72 -0
- package/dist/_chunks/PkToolShowProductList-Cfk865KB.js.map +1 -0
- package/dist/_chunks/{PkToolShowSources-CfZEfleZ.js → PkToolShowSources-qqUbdWzN.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-CfZEfleZ.js.map → PkToolShowSources-qqUbdWzN.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-DsB35hRR.js → PkToolShowSuggestedReply-Dk6Nu9cG.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-DsB35hRR.js.map → PkToolShowSuggestedReply-Dk6Nu9cG.js.map} +1 -1
- package/dist/_chunks/PkToolShowVideo-D07i4hVd.js +142 -0
- package/dist/_chunks/PkToolShowVideo-D07i4hVd.js.map +1 -0
- package/dist/_chunks/{PkToolShowWebPages-BOxbTe2X.js → PkToolShowWebPages-ksXRNsDK.js} +31 -24
- package/dist/_chunks/PkToolShowWebPages-ksXRNsDK.js.map +1 -0
- package/dist/_chunks/chatImagePolicy-B1iRRLAB.js +46 -0
- package/dist/_chunks/chatImagePolicy-B1iRRLAB.js.map +1 -0
- package/dist/_chunks/{markdown-_p-gd9w8.js → markdown-DOitQ2jz.js} +13 -13
- package/dist/_chunks/{markdown-_p-gd9w8.js.map → markdown-DOitQ2jz.js.map} +1 -1
- package/dist/ai-elements.es.js +1720 -1713
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Agent-KbZm8GvA.js → Agent-C4p46YGt.js} +67 -56
- package/dist-vue/_chunks/Agent-C4p46YGt.js.map +1 -0
- package/dist-vue/_chunks/{Document-DCSWwcRE.js → Document-B9QaYHKT.js} +10 -10
- package/dist-vue/_chunks/{Document-DCSWwcRE.js.map → Document-B9QaYHKT.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbot-BkMe7zxp.js +275 -0
- package/dist-vue/_chunks/PkChatbot-BkMe7zxp.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotEmptyState-CO7-vlsZ.js → PkChatbotEmptyState-HElKT2OO.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-CO7-vlsZ.js.map → PkChatbotEmptyState-HElKT2OO.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-D8ykcHKJ.js → PkChatbotInput-BykvFqbm.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-D8ykcHKJ.js.map → PkChatbotInput-BykvFqbm.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-UT72KC_z.js → PkChatbotMessages-wH9wxc6Y.js} +19 -19
- package/dist-vue/_chunks/{PkChatbotMessages-UT72KC_z.js.map → PkChatbotMessages-wH9wxc6Y.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-CSVHe7DP.js → PkChatbotStepPayload-DY0AzM6s.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-CSVHe7DP.js.map → PkChatbotStepPayload-DY0AzM6s.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-ixte-rGB.js → PkChatbotStepToolDetail-AXtXQVQY.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-ixte-rGB.js.map → PkChatbotStepToolDetail-AXtXQVQY.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-Y6kQ00ui.js → PkChatbotSteps-B-yrfTat.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-Y6kQ00ui.js.map → PkChatbotSteps-B-yrfTat.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-D3PwREDw.js → PkChatbotViewChat-CCcMnVkM.js} +7 -7
- package/dist-vue/_chunks/{PkChatbotViewChat-D3PwREDw.js.map → PkChatbotViewChat-CCcMnVkM.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-dpwDFyr_.js → PkChatbotViewConversations-C9h_bBIc.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-dpwDFyr_.js.map → PkChatbotViewConversations-C9h_bBIc.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-BStYLY2B.js → PkChatbotViewFiles-BkoXgGE6.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-BStYLY2B.js.map → PkChatbotViewFiles-BkoXgGE6.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-Brylm3We.js → PkChatbotViewProfile-CFR0B99Z.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-Brylm3We.js.map → PkChatbotViewProfile-CFR0B99Z.js.map} +1 -1
- package/dist-vue/_chunks/PkHeldImage-BqnlurT_.js +41 -0
- package/dist-vue/_chunks/PkHeldImage-BqnlurT_.js.map +1 -0
- package/dist-vue/_chunks/{PkStreamingMarkdown-CJlfq7ub.js → PkStreamingMarkdown-XJBXdSG2.js} +792 -780
- package/dist-vue/_chunks/PkStreamingMarkdown-XJBXdSG2.js.map +1 -0
- package/dist-vue/_chunks/{PkToolRequestGeolocation-C8sLjD6g.js → PkToolRequestGeolocation-DpvsFEga.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-C8sLjD6g.js.map → PkToolRequestGeolocation-DpvsFEga.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-rbjNi_l0.js → PkToolRequestOAuthConnection-DRefs-S1.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-rbjNi_l0.js.map → PkToolRequestOAuthConnection-DRefs-S1.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-hBmAAfsd.js → PkToolShowArtifact-BopCMkyZ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-hBmAAfsd.js.map → PkToolShowArtifact-BopCMkyZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-BHsm_W2R.js → PkToolShowContactForm-C6F_DdBu.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-BHsm_W2R.js.map → PkToolShowContactForm-C6F_DdBu.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-De2XvRnq.js → PkToolShowDiagram-7-m7VrED.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-De2XvRnq.js.map → PkToolShowDiagram-7-m7VrED.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowEmail-D1mXZrT-.js → PkToolShowEmail-C591LR5N.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowEmail-D1mXZrT-.js.map → PkToolShowEmail-C591LR5N.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-Ce_GpcBt.js → PkToolShowForm-DEr8wDJi.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-Ce_GpcBt.js.map → PkToolShowForm-DEr8wDJi.js.map} +1 -1
- package/dist-vue/_chunks/PkToolShowImageGallery-D44wf_u3.js +88 -0
- package/dist-vue/_chunks/PkToolShowImageGallery-D44wf_u3.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowMessage-lNPZxw2v.js → PkToolShowMessage-CbXERPHI.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowMessage-lNPZxw2v.js.map → PkToolShowMessage-CbXERPHI.js.map} +1 -1
- package/dist-vue/_chunks/PkToolShowProductList-C6CVRUlD.js +72 -0
- package/dist-vue/_chunks/PkToolShowProductList-C6CVRUlD.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowSources-B1Nhrk7O.js → PkToolShowSources-DzUNanmK.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowSources-B1Nhrk7O.js.map → PkToolShowSources-DzUNanmK.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-Bmzygdww.js → PkToolShowSuggestedReply-DhNtI5gJ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-Bmzygdww.js.map → PkToolShowSuggestedReply-DhNtI5gJ.js.map} +1 -1
- package/dist-vue/_chunks/PkToolShowVideo-HbQzTMh5.js +141 -0
- package/dist-vue/_chunks/PkToolShowVideo-HbQzTMh5.js.map +1 -0
- package/dist-vue/_chunks/PkToolShowWebPages-Ct1HaCSq.js +86 -0
- package/dist-vue/_chunks/PkToolShowWebPages-Ct1HaCSq.js.map +1 -0
- package/dist-vue/_chunks/{PkUrl-E12f7rn_.js → PkUrl-CN1kkZiH.js} +2 -2
- package/dist-vue/_chunks/{PkUrl-E12f7rn_.js.map → PkUrl-CN1kkZiH.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-B_mkyrEl.js → createChatbotApiClient-B2PvUG07.js} +16 -16
- package/dist-vue/_chunks/{createChatbotApiClient-B_mkyrEl.js.map → createChatbotApiClient-B2PvUG07.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-DEELIJ89.js → useChatbotStore-Cj_UmNH3.js} +3 -3
- package/dist-vue/_chunks/{useChatbotStore-DEELIJ89.js.map → useChatbotStore-Cj_UmNH3.js.map} +1 -1
- package/dist-vue/_chunks/useShortUrlResolver-DI8ycJiO.js +71 -0
- package/dist-vue/_chunks/useShortUrlResolver-DI8ycJiO.js.map +1 -0
- package/dist-vue/_chunks/{utils-CtD8DCrq.js → utils-DXXzMVU3.js} +2 -2
- package/dist-vue/_chunks/{utils-CtD8DCrq.js.map → utils-DXXzMVU3.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +2 -0
- package/dist-vue/composables.js +11 -7
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +3444 -3400
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +12 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -2
- package/dist-vue/packages/components/src/chat/PkHeldImage.d.ts +21 -0
- package/dist-vue/packages/components/src/chat/chatImagePolicy.d.ts +55 -0
- package/dist-vue/packages/components/src/chat/index.d.ts +1 -0
- package/dist-vue/packages/components/src/chat/markdownHtml.d.ts +17 -1
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +6 -0
- package/dist-vue/packages/models/src/schema/Agent.d.ts +14 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +2 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/Agent-Cu04vBnd.js.map +0 -1
- package/dist/_chunks/PkStreamingMarkdown-Qk9Tk_N7.js.map +0 -1
- package/dist/_chunks/PkToolShowImageGallery-FubPWFCb.js +0 -75
- package/dist/_chunks/PkToolShowImageGallery-FubPWFCb.js.map +0 -1
- package/dist/_chunks/PkToolShowProductList-DFy2jxn4.js +0 -65
- package/dist/_chunks/PkToolShowProductList-DFy2jxn4.js.map +0 -1
- package/dist/_chunks/PkToolShowVideo-DClps9oP.js +0 -123
- package/dist/_chunks/PkToolShowVideo-DClps9oP.js.map +0 -1
- package/dist/_chunks/PkToolShowWebPages-BOxbTe2X.js.map +0 -1
- package/dist-vue/_chunks/Agent-KbZm8GvA.js.map +0 -1
- package/dist-vue/_chunks/PkChatbot-CRb-U8e3.js +0 -272
- package/dist-vue/_chunks/PkChatbot-CRb-U8e3.js.map +0 -1
- package/dist-vue/_chunks/PkStreamingMarkdown-CJlfq7ub.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowImageGallery-DmhZLnBk.js +0 -75
- package/dist-vue/_chunks/PkToolShowImageGallery-DmhZLnBk.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowProductList-BW5pRFe4.js +0 -65
- package/dist-vue/_chunks/PkToolShowProductList-BW5pRFe4.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowVideo-BZOTu2Qe.js +0 -122
- package/dist-vue/_chunks/PkToolShowVideo-BZOTu2Qe.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowWebPages-BiIBRV_n.js +0 -79
- package/dist-vue/_chunks/PkToolShowWebPages-BiIBRV_n.js.map +0 -1
|
@@ -160,14 +160,14 @@ var T = /* @__PURE__ */ function(e) {
|
|
|
160
160
|
"low",
|
|
161
161
|
"medium",
|
|
162
162
|
"high"
|
|
163
|
-
],
|
|
163
|
+
], he = [
|
|
164
164
|
"auto",
|
|
165
165
|
"detailed",
|
|
166
166
|
"concise"
|
|
167
|
-
],
|
|
167
|
+
], ge = s({
|
|
168
168
|
reasoningEffort: d(k).optional(),
|
|
169
|
-
reasoningSummary: d(
|
|
170
|
-
}),
|
|
169
|
+
reasoningSummary: d(he).optional()
|
|
170
|
+
}), _e = s({
|
|
171
171
|
type: d([
|
|
172
172
|
"adaptive",
|
|
173
173
|
"enabled",
|
|
@@ -176,102 +176,102 @@ var T = /* @__PURE__ */ function(e) {
|
|
|
176
176
|
effort: d(A).optional(),
|
|
177
177
|
display: d(["summarized", "omitted"]).optional(),
|
|
178
178
|
budgetTokens: c().int().positive().optional()
|
|
179
|
-
}),
|
|
179
|
+
}), ve = s({
|
|
180
180
|
thinkingLevel: d(j).optional(),
|
|
181
181
|
thinkingBudget: c().int().optional(),
|
|
182
182
|
includeThoughts: f().optional()
|
|
183
|
-
}),
|
|
183
|
+
}), ye = s({ type: d(["enabled", "disabled"]).optional() }), M = [
|
|
184
184
|
"alibaba",
|
|
185
185
|
"meta",
|
|
186
186
|
"moonshotai",
|
|
187
187
|
"spacexai",
|
|
188
188
|
"xiaomi",
|
|
189
189
|
"zai"
|
|
190
|
-
],
|
|
190
|
+
], be = [
|
|
191
191
|
"none",
|
|
192
192
|
"minimal",
|
|
193
193
|
"low",
|
|
194
194
|
"medium",
|
|
195
195
|
"high",
|
|
196
196
|
"xhigh"
|
|
197
|
-
],
|
|
198
|
-
function
|
|
197
|
+
], N = s({ reasoningEffort: d(be).optional() });
|
|
198
|
+
function P(e, t) {
|
|
199
199
|
return e && t.includes(e) ? e : void 0;
|
|
200
200
|
}
|
|
201
|
-
var
|
|
202
|
-
openai:
|
|
203
|
-
anthropic:
|
|
204
|
-
google:
|
|
205
|
-
deepseek:
|
|
206
|
-
alibaba:
|
|
207
|
-
meta:
|
|
208
|
-
moonshotai:
|
|
209
|
-
spacexai:
|
|
210
|
-
xiaomi:
|
|
211
|
-
zai:
|
|
201
|
+
var xe = s({
|
|
202
|
+
openai: ge.optional(),
|
|
203
|
+
anthropic: _e.optional(),
|
|
204
|
+
google: ve.optional(),
|
|
205
|
+
deepseek: ye.optional(),
|
|
206
|
+
alibaba: N.optional(),
|
|
207
|
+
meta: N.optional(),
|
|
208
|
+
moonshotai: N.optional(),
|
|
209
|
+
spacexai: N.optional(),
|
|
210
|
+
xiaomi: N.optional(),
|
|
211
|
+
zai: N.optional()
|
|
212
212
|
});
|
|
213
|
-
function
|
|
213
|
+
function Se(e) {
|
|
214
214
|
if (!e || typeof e != "object") return e;
|
|
215
215
|
let t = e, n = [
|
|
216
216
|
"openai",
|
|
217
217
|
"anthropic",
|
|
218
218
|
"google",
|
|
219
219
|
"deepseek",
|
|
220
|
-
...
|
|
220
|
+
...M
|
|
221
221
|
].some((e) => e in t);
|
|
222
222
|
if ("effort" in t && !n) {
|
|
223
223
|
let e = t.effort, n = t.reasoningSummary, r = {};
|
|
224
224
|
if (e && e !== "off" && e !== "none") {
|
|
225
|
-
let t =
|
|
225
|
+
let t = P(e, k), i = P(n, he);
|
|
226
226
|
(t || i) && (r.openai = {
|
|
227
227
|
...t && { reasoningEffort: t },
|
|
228
228
|
...i && { reasoningSummary: i }
|
|
229
229
|
});
|
|
230
|
-
let a =
|
|
230
|
+
let a = P(e, A);
|
|
231
231
|
a && (r.anthropic = {
|
|
232
232
|
type: "adaptive",
|
|
233
233
|
effort: a
|
|
234
234
|
});
|
|
235
|
-
let o =
|
|
235
|
+
let o = P(e === "xhigh" || e === "max" ? "high" : e, j);
|
|
236
236
|
o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
|
|
237
|
-
let s =
|
|
238
|
-
if (s) for (let e of
|
|
237
|
+
let s = P(e === "max" ? "xhigh" : e, be);
|
|
238
|
+
if (s) for (let e of M) r[e] = { reasoningEffort: s };
|
|
239
239
|
} else {
|
|
240
240
|
r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" };
|
|
241
|
-
for (let e of
|
|
241
|
+
for (let e of M) r[e] = { reasoningEffort: "none" };
|
|
242
242
|
}
|
|
243
243
|
return r;
|
|
244
244
|
}
|
|
245
245
|
return e;
|
|
246
246
|
}
|
|
247
|
-
var
|
|
247
|
+
var F = _(h(), xe, Se).optional(), I = /* @__PURE__ */ function(e) {
|
|
248
248
|
return e.Geocode = "geocode", e.GetWeather = "getWeather", e.ReadDocumentFile = "readDocumentFile", e.RequestConfirm = "requestConfirm", e.RequestGeolocation = "requestGeolocation", e.RetrieveRevisedAnswers = "retrieveRevisedAnswers", e.SearchInKnowledgeBase = "searchInKnowledgeBase", e.SearchInUserFiles = "searchInUserFiles", e.UserMemory = "userMemory", e.RunWorker = "runWorker", e.FetchTeamsChannelHistory = "fetchTeamsChannelHistory", e.ShowArtifact = "showArtifact", e.ShowCalendarEvent = "showCalendarEvent", e.ShowComparison = "showComparison", e.ShowContactForm = "showContactForm", e.ShowDiagram = "showDiagram", e.ShowEmail = "showEmail", e.ShowImageGallery = "showImageGallery", e.ShowLocation = "showLocation", e.ShowMessage = "showMessage", e.ShowForm = "showForm", e.ShowProductList = "showProductList", e.ShowQrCode = "showQrCode", e.ShowSources = "showSources", e.ShowSuggestedReply = "showSuggestedReply", e.ShowVideo = "showVideo", e.ShowWeather = "showWeather", e.ShowWebPages = "showWebPages", e.ShowMultipleChoice = "showMultipleChoice", e;
|
|
249
249
|
}({});
|
|
250
|
-
function
|
|
251
|
-
return e ===
|
|
250
|
+
function Ce(e) {
|
|
251
|
+
return e === I.RequestConfirm || e === I.ShowArtifact || e === I.ShowCalendarEvent || e === I.ShowComparison || e === I.ShowContactForm || e === I.ShowDiagram || e === I.ShowEmail || e === I.ShowImageGallery || e === I.ShowLocation || e === I.ShowMessage || e === I.ShowForm || e === I.ShowMultipleChoice || e === I.ShowProductList || e === I.ShowQrCode || e === I.ShowSources || e === I.ShowSuggestedReply || e === I.ShowVideo || e === I.ShowWeather || e === I.ShowWebPages;
|
|
252
252
|
}
|
|
253
|
-
|
|
254
|
-
var
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
253
|
+
I.RequestConfirm, I.ShowArtifact, I.ShowWeather, I.ShowLocation, I.ShowComparison, I.ShowProductList, I.ShowWebPages, I.ShowImageGallery, I.ShowVideo, I.ShowSources, I.ShowSuggestedReply, I.ShowCalendarEvent, I.ShowEmail, I.ShowMessage, I.ShowForm;
|
|
254
|
+
var we = /* @__PURE__ */ new Set([
|
|
255
|
+
I.RequestConfirm,
|
|
256
|
+
I.RequestGeolocation,
|
|
257
|
+
I.ShowForm,
|
|
258
|
+
I.ShowMultipleChoice,
|
|
259
259
|
"requestOAuthConnection"
|
|
260
260
|
]);
|
|
261
|
-
function
|
|
262
|
-
return
|
|
261
|
+
function Te(e) {
|
|
262
|
+
return we.has(e);
|
|
263
263
|
}
|
|
264
|
-
|
|
265
|
-
var
|
|
266
|
-
function
|
|
267
|
-
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(
|
|
264
|
+
I.RequestConfirm, I.RequestGeolocation, I.ShowArtifact, I.ShowCalendarEvent, I.ShowContactForm, I.ShowComparison, I.ShowDiagram, I.ShowEmail, I.ShowForm, I.ShowImageGallery, I.ShowLocation, I.ShowMessage, I.ShowMultipleChoice, I.ShowProductList, I.ShowQrCode, I.ShowSources, I.ShowSuggestedReply, I.ShowVideo, I.ShowWeather, I.ShowWebPages;
|
|
265
|
+
var Ee = "Shown on the caller's screen";
|
|
266
|
+
function De(e) {
|
|
267
|
+
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(Ee));
|
|
268
268
|
}
|
|
269
|
-
var
|
|
269
|
+
var L = s({
|
|
270
270
|
maxSteps: c().int().min(1).max(10).optional().default(5),
|
|
271
271
|
maxOptionsPerStep: c().int().min(2).max(10).optional().default(5)
|
|
272
|
-
}),
|
|
272
|
+
}), R = /* @__PURE__ */ function(e) {
|
|
273
273
|
return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
|
|
274
|
-
}({}),
|
|
274
|
+
}({}), Oe = s({
|
|
275
275
|
maxResults: c().int().min(1).max(20).optional(),
|
|
276
276
|
maxTokens: c().int().positive().max(1e6).optional(),
|
|
277
277
|
maxTokensPerPage: c().int().positive().optional(),
|
|
@@ -284,7 +284,7 @@ var R = s({
|
|
|
284
284
|
"month",
|
|
285
285
|
"year"
|
|
286
286
|
]).optional()
|
|
287
|
-
}),
|
|
287
|
+
}), ke = s({
|
|
288
288
|
mode: d(["one-shot", "agentic"]).optional(),
|
|
289
289
|
maxResults: c().int().min(1).max(20).optional(),
|
|
290
290
|
sourcePolicy: s({
|
|
@@ -297,7 +297,7 @@ var R = s({
|
|
|
297
297
|
maxCharsTotal: c().int().positive().optional()
|
|
298
298
|
}).optional(),
|
|
299
299
|
fetchPolicy: s({ maxAgeSeconds: c().int().positive().optional() }).optional()
|
|
300
|
-
}),
|
|
300
|
+
}), Ae = s({
|
|
301
301
|
openai: s({}).optional(),
|
|
302
302
|
anthropic: s({
|
|
303
303
|
maxUses: c().int().positive().optional(),
|
|
@@ -312,25 +312,25 @@ var R = s({
|
|
|
312
312
|
}).optional()
|
|
313
313
|
}).optional(),
|
|
314
314
|
google: s({}).optional()
|
|
315
|
-
}),
|
|
315
|
+
}), z = s({
|
|
316
316
|
enabled: f().default(!1),
|
|
317
|
-
provider: d(
|
|
318
|
-
perplexity:
|
|
319
|
-
parallel:
|
|
320
|
-
native:
|
|
321
|
-
}),
|
|
322
|
-
disabled: n(d(
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
317
|
+
provider: d(R).optional().default(R.Native),
|
|
318
|
+
perplexity: Oe.optional(),
|
|
319
|
+
parallel: ke.optional(),
|
|
320
|
+
native: Ae.optional()
|
|
321
|
+
}), B = s({ useAllUserKb: f().default(!1) }), V = s({ useAllUserFiles: f().default(!1) }), H = s({ tools: n(g()).default([]) }), U = s({
|
|
322
|
+
disabled: n(d(I)).default([
|
|
323
|
+
I.UserMemory,
|
|
324
|
+
I.SearchInUserFiles,
|
|
325
|
+
I.RunWorker,
|
|
326
|
+
I.FetchTeamsChannelHistory
|
|
327
327
|
]),
|
|
328
|
-
showForm:
|
|
329
|
-
webSearch:
|
|
330
|
-
userMemory:
|
|
331
|
-
userFiles:
|
|
332
|
-
approval:
|
|
333
|
-
}),
|
|
328
|
+
showForm: L.optional().default(() => L.parse({})),
|
|
329
|
+
webSearch: z.optional().default(() => z.parse({})),
|
|
330
|
+
userMemory: B.optional().default(() => B.parse({})),
|
|
331
|
+
userFiles: V.optional().default(() => V.parse({})),
|
|
332
|
+
approval: H.optional().default(() => H.parse({}))
|
|
333
|
+
}), W = s({
|
|
334
334
|
freshness: s({
|
|
335
335
|
enabled: f().default(!1),
|
|
336
336
|
scale: c().int().min(86400).max(31536e3).default(7776e3),
|
|
@@ -342,7 +342,7 @@ var R = s({
|
|
|
342
342
|
diversity: c().min(0).max(1).default(.3),
|
|
343
343
|
candidatesLimit: c().int().min(20).max(100).default(50)
|
|
344
344
|
}).prefault({})
|
|
345
|
-
}).prefault({}),
|
|
345
|
+
}).prefault({}), je = s({
|
|
346
346
|
prompt: g().optional(),
|
|
347
347
|
temperature: c().min(0).max(2).optional().default(.6),
|
|
348
348
|
maxOutputTokens: c().positive().optional(),
|
|
@@ -351,13 +351,23 @@ var R = s({
|
|
|
351
351
|
searchMode: d(O).optional().default(O.Balanced),
|
|
352
352
|
limit: c().positive().max(100).optional().default(10),
|
|
353
353
|
maxStepCount: c().int().min(1).max(40).optional().default(10),
|
|
354
|
-
reasoning:
|
|
355
|
-
ranking:
|
|
356
|
-
}),
|
|
354
|
+
reasoning: F,
|
|
355
|
+
ranking: W.optional().default(() => W.parse({}))
|
|
356
|
+
}), G = _(h(), m(g(), g()), (e) => typeof e == "string" ? { it: e } : e), Me = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", K = /* @__PURE__ */ function(e) {
|
|
357
357
|
return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
|
|
358
|
-
}({}),
|
|
358
|
+
}({}), q = /* @__PURE__ */ function(e) {
|
|
359
359
|
return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
|
|
360
|
-
}({}),
|
|
360
|
+
}({}), J = Object.values(q), Ne = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
|
|
361
|
+
function Y(e) {
|
|
362
|
+
let t = e.trim().toLowerCase();
|
|
363
|
+
if (!t) return "";
|
|
364
|
+
try {
|
|
365
|
+
return new URL(t.includes("://") ? t : `https://${t}`).hostname;
|
|
366
|
+
} catch {
|
|
367
|
+
return t;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
var X = s({
|
|
361
371
|
media: C.optional(),
|
|
362
372
|
logo: g().optional(),
|
|
363
373
|
theme: d([
|
|
@@ -372,22 +382,23 @@ var R = s({
|
|
|
372
382
|
"black"
|
|
373
383
|
]).optional().default("auto"),
|
|
374
384
|
useColorsForAgentHeader: f().optional().default(!1),
|
|
375
|
-
initialMessage:
|
|
376
|
-
greeting: n(
|
|
377
|
-
messagePlaceholder:
|
|
378
|
-
dismissableNotice:
|
|
379
|
-
footerMessage:
|
|
380
|
-
privacyPolicyNotice:
|
|
385
|
+
initialMessage: G.optional(),
|
|
386
|
+
greeting: n(G).min(1).max(10).optional(),
|
|
387
|
+
messagePlaceholder: G.optional(),
|
|
388
|
+
dismissableNotice: G.optional(),
|
|
389
|
+
footerMessage: G.optional(),
|
|
390
|
+
privacyPolicyNotice: G.optional(),
|
|
381
391
|
interactiveLogin: f().optional().default(!0),
|
|
382
392
|
welcomePopup: f().optional().default(!1),
|
|
383
393
|
floatingButtonPosition: d(["left", "right"]).optional().default("right"),
|
|
384
394
|
maxMessageLength: c().int().positive().optional(),
|
|
385
|
-
widgetUrl: t().default(
|
|
395
|
+
widgetUrl: t().default(Me),
|
|
386
396
|
loadDelay: c().int().min(0).max(3e4).optional().default(0),
|
|
387
|
-
loaderStrategy: d(
|
|
397
|
+
loaderStrategy: d(K).optional().default(K.InlineModule),
|
|
388
398
|
customCss: g().optional(),
|
|
389
399
|
smoothStream: f().optional().default(!1),
|
|
390
|
-
showExtendedSteps: f().optional().default(!1)
|
|
400
|
+
showExtendedSteps: f().optional().default(!1),
|
|
401
|
+
imageHosts: n(g().overwrite(Y).refine((e) => e === "" || Ne.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
|
|
391
402
|
}), Z = s({
|
|
392
403
|
enabled: f().default(!1),
|
|
393
404
|
maxFileSizeBytes: c().int().positive().max(104857600).optional().default(20971520),
|
|
@@ -407,9 +418,9 @@ var R = s({
|
|
|
407
418
|
zeroDataRetention: f().default(!0),
|
|
408
419
|
disallowPromptTraining: f().default(!0),
|
|
409
420
|
providerTimeoutMs: c().int().min(1e3).max(789e3).optional()
|
|
410
|
-
}),
|
|
421
|
+
}), Pe = s({ enabled: f().default(!1) }), Fe = /* @__PURE__ */ function(e) {
|
|
411
422
|
return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
|
|
412
|
-
}({}),
|
|
423
|
+
}({}), Ie = s({ mode: d(Fe).default(Fe.Off) }), Le = s({
|
|
413
424
|
enabled: f().default(!1),
|
|
414
425
|
voiceId: g().optional(),
|
|
415
426
|
language: g().min(2).max(5).default("it"),
|
|
@@ -428,38 +439,38 @@ var R = s({
|
|
|
428
439
|
providerAgentId: g().optional(),
|
|
429
440
|
providerSecretId: g().optional(),
|
|
430
441
|
providerApiKeyId: g().optional()
|
|
431
|
-
}),
|
|
442
|
+
}), Re = s({ enabled: f() });
|
|
432
443
|
s({
|
|
433
444
|
chatId: g().min(1).optional(),
|
|
434
445
|
deviceContext: b.optional(),
|
|
435
446
|
externalContext: m(g(), h()).optional()
|
|
436
447
|
});
|
|
437
|
-
var
|
|
448
|
+
var ze = s({
|
|
438
449
|
sessionId: g(),
|
|
439
450
|
signedUrl: g(),
|
|
440
451
|
providerAgentId: g(),
|
|
441
452
|
chatId: g(),
|
|
442
453
|
maxSessionSeconds: c().int()
|
|
443
|
-
}),
|
|
454
|
+
}), Be = s({
|
|
444
455
|
voiceId: g(),
|
|
445
456
|
name: g(),
|
|
446
457
|
category: g().optional(),
|
|
447
458
|
previewUrl: g().optional(),
|
|
448
459
|
labels: m(g(), g()).optional()
|
|
449
460
|
});
|
|
450
|
-
n(
|
|
451
|
-
var
|
|
452
|
-
model:
|
|
461
|
+
n(Be);
|
|
462
|
+
var Ve = s({
|
|
463
|
+
model: je,
|
|
453
464
|
interface: X,
|
|
454
|
-
tools:
|
|
465
|
+
tools: U.optional().default(() => U.parse({})),
|
|
455
466
|
fileUpload: Z.optional().default(() => Z.parse({})),
|
|
456
467
|
gatewayOptions: Q.optional().default(() => Q.parse({})),
|
|
457
|
-
channels: n(d(
|
|
468
|
+
channels: n(d(q)).optional().default(() => [...J]),
|
|
458
469
|
externalContextSchema: te.optional(),
|
|
459
|
-
openaiApi:
|
|
460
|
-
voice:
|
|
461
|
-
toolWorkingSet:
|
|
462
|
-
}),
|
|
470
|
+
openaiApi: Pe.optional().default(() => Pe.parse({})),
|
|
471
|
+
voice: Le.optional().default(() => Le.parse({})),
|
|
472
|
+
toolWorkingSet: Ie.optional().default(() => Ie.parse({}))
|
|
473
|
+
}), He = s({
|
|
463
474
|
rateLimits: s({
|
|
464
475
|
minuteRateLimit: c().int().min(0).optional(),
|
|
465
476
|
hourRateLimit: c().int().min(0).optional(),
|
|
@@ -476,8 +487,8 @@ s({
|
|
|
476
487
|
fallbackModels: n(g()).default([]),
|
|
477
488
|
status: d(T).default(T.Draft),
|
|
478
489
|
visibility: d(E).default(E.Organization),
|
|
479
|
-
settings:
|
|
480
|
-
security:
|
|
490
|
+
settings: Ve,
|
|
491
|
+
security: He.nullish(),
|
|
481
492
|
type: d(D).default(D.Chat),
|
|
482
493
|
organizationId: g()
|
|
483
494
|
}), a(() => s({
|
|
@@ -488,8 +499,8 @@ s({
|
|
|
488
499
|
fallbackModels: n(g()).nullable().default([]),
|
|
489
500
|
status: d(T).default(T.Draft),
|
|
490
501
|
visibility: d(E).default(E.Organization),
|
|
491
|
-
settings:
|
|
492
|
-
security:
|
|
502
|
+
settings: Ve,
|
|
503
|
+
security: He.nullable(),
|
|
493
504
|
type: d(D).default(D.Chat),
|
|
494
505
|
organizationId: g(),
|
|
495
506
|
createdAt: p(),
|
|
@@ -502,7 +513,7 @@ s({
|
|
|
502
513
|
outOfBudget: f().optional().default(!1),
|
|
503
514
|
outOfBudgetReason: g().optional().default("")
|
|
504
515
|
}));
|
|
505
|
-
var
|
|
516
|
+
var Ue = s({
|
|
506
517
|
id: g(),
|
|
507
518
|
name: g(),
|
|
508
519
|
status: d(T),
|
|
@@ -513,34 +524,34 @@ var Ve = s({
|
|
|
513
524
|
updatedAt: p(),
|
|
514
525
|
capabilities: s({
|
|
515
526
|
fileUpload: Z,
|
|
516
|
-
voice:
|
|
527
|
+
voice: Re
|
|
517
528
|
}),
|
|
518
|
-
channels: n(d(
|
|
519
|
-
}),
|
|
529
|
+
channels: n(d(q)).default(() => [...J])
|
|
530
|
+
}), We = X.pick({
|
|
520
531
|
logo: !0,
|
|
521
532
|
mainColor: !0,
|
|
522
533
|
textColor: !0,
|
|
523
534
|
theme: !0,
|
|
524
535
|
floatingButtonPosition: !0,
|
|
525
536
|
customCss: !0
|
|
526
|
-
}),
|
|
537
|
+
}), Ge = Ue.pick({
|
|
527
538
|
id: !0,
|
|
528
539
|
name: !0,
|
|
529
540
|
organizationId: !0
|
|
530
|
-
}).extend({ interface:
|
|
541
|
+
}).extend({ interface: We }), Ke = s({
|
|
531
542
|
emailPassword: f(),
|
|
532
543
|
google: f(),
|
|
533
544
|
microsoft: f()
|
|
534
|
-
}),
|
|
545
|
+
}), qe = s({
|
|
535
546
|
requiresAuth: o(!1),
|
|
536
|
-
agent:
|
|
547
|
+
agent: Ue,
|
|
537
548
|
branding: l()
|
|
538
549
|
}), $ = s({
|
|
539
550
|
requiresAuth: o(!0),
|
|
540
551
|
agent: l(),
|
|
541
|
-
branding:
|
|
552
|
+
branding: Ge
|
|
542
553
|
});
|
|
543
|
-
u("requiresAuth", [
|
|
554
|
+
u("requiresAuth", [qe, $]), u("requiresAuth", [qe.extend({ authMethods: Ke }), $.extend({ authMethods: Ke })]), s({
|
|
544
555
|
id: e(),
|
|
545
556
|
agentIds: n(e())
|
|
546
557
|
}), s({
|
|
@@ -561,6 +572,6 @@ u("requiresAuth", [Ge, $]), u("requiresAuth", [Ge.extend({ authMethods: We }), $
|
|
|
561
572
|
...y.ids()
|
|
562
573
|
});
|
|
563
574
|
//#endregion
|
|
564
|
-
export { O as a,
|
|
575
|
+
export { O as a, Ce as c, Y as d, x as f, y as g, _ as h, F as i, Te as l, b as m, Q as n, z as o, C as p, W as r, ze as s, I as t, De as u };
|
|
565
576
|
|
|
566
|
-
//# sourceMappingURL=Agent-
|
|
577
|
+
//# sourceMappingURL=Agent-D3cVY0pk.js.map
|